<div class="row">
<script language="javascript" type="text/javascript" src="/js/DatePicker/WdatePicker.js"></script>
<style type="text/css">
.Wdate{border:0px; }
</style>
    <div class="span3 bs-docs-sidebar ">
    <*include file="<*$controller*>/location.tpl"*>
    </div>
    
    <div class="span7">
    	<button class="btn btn-primary" type="button" onclick="window.location='/<*$controller*>/statisticsall/groupid/<*$groupid*>'">返回</button> 
    </div>
    
    <div class="span7">
        <div class="span7" style="text-align:center; margin-top:10px;padding-bottom:10px; clear:both">
             <form action="/<*$controller*>/statisclass/groupid/<*$groupid*>/schoolid/<*$schoolid*>" method="get" >   
                    开始日期：<input type="text" class="Wdate" id="start_date" onclick="WdatePicker()" style="width:110px"  name="start_date" class="Wdate" value="<*$start_date*>" autocomplete="off"/> 
                   ~  结束日期：<input type="text" class="Wdate" id="end_date" onclick="WdatePicker()" style="width:110px"  name="end_date" class="Wdate" value="<*$end_date*>" autocomplete="off"/>  
                   <button type="submit" style="margin-bottom:10px;" class="btn btn-primary btn-small" >查询</button>
             </form>     
        </div>  

        <div class="span7"> 
            <table class="table table-bordered table-hover" style="cursor:pointer;" >
                <tr><th>班级名称</th><th>学生数</th><th>已发照片数</th></tr>
                <*foreach from=$class item=item key=key*>
                <tr onclick="chooseit(<*$key*>,<*$schoolid*>,<*$groupid*>,'<*$start_date*>','<*$end_date*>')"><td><*$item*></td><td><*if $student.$key*><*$student.$key*><*else*>0<*/if*></td><td><*if $picture.$key*><*$picture.$key*><*else*>0<*/if*></td></tr>
                <*/foreach*>
            </table>
        </div>
	</div>
</div>
</div>

<script type="text/javascript">
function chooseit(classuid,schoolid,groupid,start,end)
{
   window.location='/<*$controller*>/statistics/uid_class/'+classuid+'/schoolid/'+schoolid+'/groupid/'+groupid+'/start_date/'+start+'/end_date/'+end;
}

</script>


